$('#example1').DataTable({
    language: {
        url: '/plugin/DataTables-1.10.15/Chinese.json'
    },
    searching: false,
    ordering: false,
    lengthChange: false,
    ajax: "/admin/user/getUsers",
    serverSide: true,
    columns: [
        { title: "用户名", data: "duUsername" },
        { title: "昵称", data: "duNickname" },
        { title: "邮箱", data: "duEmail" },
        { title: "状态", data: "duState" },
        { title: "操作", data: "duId", render: function (id){return [
            '<button class="btn btn-primary" onclick="edirUser(' + id + ')">编辑</button>',
            '<button class="btn btn-primary" onclick="edirUser(' + id + ')">修改</button>',
            '<button class="btn btn-primary" onclick="edirUser(' + id + ')">删除</button>'
        ].join(' ')}}
    ]
});




function edirUser(id) {
    alert(id);
}